package com.group3.hospital.bean;/*
 *@author 时崎
 * 2021/12/31
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Note {
    private Integer noteId;
    private String noteName;
    private String noteMessage;
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date noteTime;

    public Note(String noteName, String noteMessage) {
        this.noteName = noteName;
        this.noteMessage = noteMessage;
    }
}
